package se.mobstrat.android.asobaudiobook.javascript;

import se.mobstrat.android.asobaudiobook.Main;
import android.util.Log;

public class JavaScriptUtils {

	final static String	TAG	= "JavaScriptUtils";

	private Main		main;

	public JavaScriptUtils(Main main) {
		this.main = main;
	}
	
	public String getTracksFromMediaLibrary() {
		return "";
	}
	
	public void clearCache() {
		main.clearCache();
	}
	
	/*
	public void debug(String calltag, String message) {
		Log.d(calltag, String.format("-------------%s -- %s", calltag, message));
	}
	*/
	
	public void debug(String message) {
		Log.d("JS", String.format("-------------%s -- %s", "JS", message));
	}

	void log(String msg) {
		Log.d(TAG, String.format("%s -- %s", TAG, msg));
	}

}
